﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/AdminSite.Master" Inherits="System.Web.Mvc.ViewPage<List<MensUnoShop.Models.Specification>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SpecList
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div id="main-content" class="hastable">
		    <div class="title title-spacing">
			    <h2>規格列表</h2>
					
		    </div>

            <input type="button" value="新增規格" onclick="javascript:location.href='/Admin/Product/Spec/0?pdguid=<%:ViewData["pdguid"] %>'" />
            <input type="button" value="商品列表" onclick="javascript:history.back();" />
            <table cellspacing="0">
            <thead>
				<tr>
					<td style="width:100px">規格標籤</td>
					<td style="width:100px">庫存量</td>
                    <%--<td style="width:100px"></td>--%>
				</tr>
			</thead>
            <%if (Model != null){%>
             <tbody>
            <%foreach (var item in Model)
            {  %>
        	    <tr>
                    <td align="center" style="text-align: center" valign="middle"><%:item.TITLE %></td>
                    <td align="center" style="text-align: center" valign="middle"><%:item.STOCK %></td>
                    <%--<td><a id="Product" name="Product" href="/Admin/Product/Spec/<%:item.SID %>">規格明細</a></td>--%>
                </tr>
            <%} %>
            </tbody>
            <%} %>
            </table>
           
            <br/><br/>　
        </div>

</asp:Content>
